From: Rui Matos Date: Fri, 7 Aug 2015 12:37:04 +0000 (+0200) Subject: viewSelector: Make backspace focus the search entry X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1267 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=45a6e2c3056895599070cf9f98c78c1c4f577c7c;p=gnome-shell.git viewSelector: Make backspace focus the search entry Commit fb0cf64536a35d0d018d2f2bd506a9f02af57b14 regressed this because there's no unicode character for backspace. https://bugzilla.gnome.org/show_bug.cgi?id=753319 --- diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js index 648f6fa76..660f619a9 100644 --- a/js/ui/viewSelector.js +++ b/js/ui/viewSelector.js @@ -465,6 +465,9 @@ const ViewSelector = new Lang.Class({ }, _shouldTriggerSearch: function(symbol) { + if (symbol == Clutter.BackSpace && this._searchActive) + return true; + let unicode = Clutter.keysym_to_unicode(symbol); if (unicode == 0) return false; @@ -472,7 +475,7 @@ const ViewSelector = new Lang.Class({ if (getTermsForSearchString(String.fromCharCode(unicode)).length > 0) return true; - return symbol == Clutter.BackSpace && this._searchActive; + return false; }, startSearch: function(event) {